var mysql = require('mysql');

module.exports = function m_connection(req, callback, notoken) {
  let m_req = req;
  let m_callback = callback;
  let m_notoken = notoken;

  var connection = mysql.createConnection({
    host: 'localhost',
    port:3306,
    user: 'root',
    password: 'hyl',
    database: 'vue3-ts-public',
    autoReconnect: true,
    multipleStatements: true,    //支持执行多条sql语句
    // timezone: 'UTC' // 设置时区为 UTC 
  });

  connection.connect();

  callback(connection);

};